package com.jinsi.mapper.ylt;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName InfoCouponMapper
 * @Content 优惠劵统计展示数据持久层
 * @Author 姚龙腾
 * @Date 2022/10/12 11:53
 */
@Mapper
public interface InfoCouponMapper {

    /**
     * 获取每个优惠劵类型的数量
     * @param discountsType
     * @return int
     */
    @Select("select count(*) from sy_discounts where discounts_type = #{discountsType}")
    int getCouponCount(String discountsType);
}
